package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 快递订单提交参数
 * @author DEREK
 */
@Data
@ApiModel("快递订单提交更新参数")
public class AppOrderUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "username参数缺失")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotNull(message = "ordernum参数缺失")
    @ApiModelProperty(value = "订单编号")
    private String ordernum;

    @NotNull(message = "userid参数缺失")
    @ApiModelProperty(value = "用户ID")
    private Integer userid;

    @NotNull(message = "recmanname参数缺失")
    @ApiModelProperty(value = "收件人姓名")
    private String recmanname;

    @NotNull(message = "recmanmobile参数缺失")
    @ApiModelProperty(value = "收件人号码")
    private String recmanmobile;

    @NotNull(message = "recmanprintaddr参数缺失")
    @ApiModelProperty(value = "收件人地址")
    private String recmanprintaddr;

    @NotNull(message = "sendmanname参数缺失")
    @ApiModelProperty(value = "寄件人姓名")
    private String sendmanname;

    @NotNull(message = "sendmanmobile参数缺失")
    @ApiModelProperty(value = "寄件人电话号码")
    private String sendmanmobile;

    @NotNull(message = "sendmanprintaddr参数缺失")
    @ApiModelProperty(value = "寄件人地址")
    private String sendmanprintaddr;

    @NotNull(message = "cargoname参数缺失")
    @ApiModelProperty(value = "物品类别")
    private String cargoname;

    @NotNull(message = "weight参数缺失")
    @ApiModelProperty(value = "物品重量")
    private String weight;

    @NotNull(message = "kuaidicom参数缺失")
    @ApiModelProperty(value = "快递公司编码")
    private String kuaidicom;

    @NotNull(message = "daytype参数缺失")
    @ApiModelProperty(value = "预约时间，1：今天，2：明天，3：后天")
    private Integer daytype;

    @NotNull(message = "pickupstarttime参数缺失")
    @ApiModelProperty(value = "预约上门开始时间")
    private String pickupstarttime;

    @NotNull(message = "pickupendtime参数缺失")
    @ApiModelProperty(value = "预约上门结束时间")
    private String pickupendtime;

    @NotNull(message = "payprice参数缺失")
    @ApiModelProperty(value = "支付金额")
    private BigDecimal payprice;

    @NotNull(message = "paystatus参数缺失")
    @ApiModelProperty(value = "支付状态，0:未支付【提交订单时默认为0】，1：已支付，2：未支付，3：已取消")
    private Integer paystatus;

    @NotNull(message = "paytype参数缺失")
    @ApiModelProperty(value = "支付方式")
    private String paytype;

    @NotNull(message = "payordernum参数缺失")
    @ApiModelProperty(value = "支付订单号")
    private String payordernum;

    @NotNull(message = "createtime参数缺失")
    @ApiModelProperty(value = "")
    private Date createtime;

    @NotNull(message = "paytime参数缺失")
    @ApiModelProperty(value = "")
    private Date paytime;

    @NotNull(message = "remark参数缺失")
    @ApiModelProperty(value = "备注，说明")
    private String remark;

}
